import {TypeConfig,NameConfig,HideLabelConfig,RuleConfig,eventConfig} from '@/common/consts/component-internal-config'
export const cardNameSetter = {
  title: "证件名称",
  name: "cardName", // 对应options-config里options的key
  borderTop: true,
  setter: { componentName: "cardNameSetter", type: "customSetter" },
};
export default [
  {
    title: '基础属性',
    collapseName: 'commonConfig',
    configs: [
      TypeConfig,
      NameConfig,
      cardNameSetter,
      HideLabelConfig,
      RuleConfig,
      eventConfig
    ]
  },
  {
    title: '校验属性',
    collapseName: 'validateConfig',
    configs: [
      {
        direction: 'vertical',
        setter: {
          componentName: 'RuleSetter',
          rules: ['must', 'common', 'regexp', 'custom']
        }
      }
    ]
  }
]
